package com.xy.generator;

import java.io.File;

public class MainGenerator {
    public static void doGenerate(Object model) {
        String inputRootPath = "D:\\project\\xy-generator\\xy-generate-demo-project\\acm-template";
        String outputRootPath = "generated";
        String inputGPath;
        String outputGPath;
                inputGPath =new File(inputRootPath, "src/main/resources/templates/MainTemplate.java.ftl").getAbsolutePath();
                outputGPath =new File(outputRootPath, "src/main/java/com/xy/acm/MainTemplate.java").getAbsolutePath();
                   DynamicFileGenerator.doGenerate(inputGPath, outputGPath, model);
    }
}
